//导入mongoose
const mongoose=require('./connect')

//分类表的schema
const catSchema=new mongoose.Schema({
    catname:{
        required:true,
        type:String
    }
})

const catModel=mongoose.model('cat',catSchema,'cat')

module.exports=catModel